
import javax.swing.*;
import javax.swing.border.LineBorder;

import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
	public class OwnerChoice extends JScrollPane {
		public OwnerChoice() {
			JLabel label = new JLabel("Label");
			 label.setPreferredSize(new Dimension(1000, 1000));
			 JButton jbEditInfo = new JButton("Restaurant Info");
			 JButton jbtShowStat = new JButton("View Statistic");
			   
			   
			   jbEditInfo.addActionListener(new ActionListener(){
				   public void actionPerformed(ActionEvent e){
					   MainFrame.restaurantCardLayout.show(MainFrame.restaurantContainer, "ownerEdit");
					   MainFrame.ownerEdit.initDB();
				   }
			   });
			   jbtShowStat.addActionListener(new ActionListener(){
				   public void actionPerformed(ActionEvent e){
					   
				   }
			   });
			   
			   
			  // setViewportBorder(new LineBorder(Color.RED));
			   JPanel jPanel= new JPanel();
			   jPanel.add(jbEditInfo);
			   jPanel.add(jbtShowStat);
			   getViewport().add(jPanel, null);
			
			
		}

	}


	
